-- GENERATED SPELL FOR [Greater Firebird] --


function spell0_8207(pUnit, Event) --@Crimson Fury,Self--
pUnit:FullCastSpellOnTarget(16843,pUnit)
pUnit:RegisterEvent('Sorts_8207', 4251, 1)
end

function spell1_8207(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(11970,pUnit)
pUnit:RegisterEvent('Sorts_8207', 2000, 1)
end

function Sorts_8207(pUnit, Event)
local choix_sorts_8207 = math.random(0, 1)
if choix_sorts_8207 == 0 then
pUnit:RegisterEvent('spell0_8207', 1, 1)
end
if choix_sorts_8207 == 1 then
pUnit:RegisterEvent('spell1_8207', 1, 1)
end
end

function mob8207_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8207', math.random(1500, 3000), 1)
end

function mob8207_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8207_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8207_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8207, 1, 'mob8207_Action')
RegisterUnitEvent(8207, 2, 'mob8207_Leave')
RegisterUnitEvent(8207, 3, 'mob8207_Kill')
RegisterUnitEvent(8207, 4, 'mob8207_Die')
